<?php //print_r($fqas);?> 
<h2><?php echo __('FQAs'); ?></h2>
<div class="tab-content">
    <div class="tab-pane active" id="featured_products">
    <?php foreach ($fqas as $fqa): ?>
        <?php echo '<div class="item">'?>
		
		
                <?php echo '<div><b> <span style="float: left;">Q.</span>'.$fqa['Fqa']['question'].'</b></div>';
                
                foreach($ans as $answers){
                    if($answers['AnsFqa']['fqa_id']==$fqa['Fqa']['id']){
                        echo '<div><span style="float: left;">A.</span>'.$answers['AnsFqa']['answer'].'</div>';
                    }
                }?>
            <?php echo '<span style="float: right;">'.$fqa['Fqa']['posted_date'].'</span><br/><br/>'; ?>
            
        <?php echo '</div>'?>
    <?php endforeach; 
    
   // print_r($ans); ?>
    </div>
</div>
 

